package com.zbkj.crmeb.agent.model;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 服务商资金账户表
 * </p>
 *
 * @author wuzp
 * @since 2022-02-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("eb_agent_account")
@ApiModel(value="AgentAccount对象", description="服务商资金账户表")
public class AgentAccount extends Model<AgentAccount> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "服务商id")
    private Integer agentId;

    @ApiModelProperty(value = "账户冻结状态 1: 已冻结 0: 未冻结")
    private Integer status;

    @ApiModelProperty(value = "可提现金额")
    private BigDecimal withdrawAccount;

    @ApiModelProperty(value = "冻结金额")
    private BigDecimal freezeAccount;

    @ApiModelProperty(value = "累计交易金额")
    private BigDecimal totalMoney;

    @ApiModelProperty(value = "累计已结算金额")
    private BigDecimal closeMoney;

    @ApiModelProperty(value = "收款账户")
    private String bankName;

    @ApiModelProperty(value = "收款账号")
    private String bankNo;

    @ApiModelProperty(value = "开户行")
    private String createBank;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    private Date updateTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
